<%@ page contentType="text/html; charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<link href="${ctx }/css/main/base.css" rel="stylesheet"
			type="text/css" />
		<link href="${ctx }/css/main/main.css" rel="stylesheet"
			type="text/css" />
		<style type="text/css">
.bodycolor {
	BACKGROUND: #E1ECFF
}
</style>
		<script type="text/javascript">
		function mySqlDownload(){
			var btn1 = document.getElementById("btn1");
			var data = document.getElementById("data");
			var file = document.getElementById("file");
			
				if(data.checked == true && file.checked == false){
			  		
			  		window.location = "${ctx}/data/data!mySqlDownload.action";
			 		 btn1.disabled = true;
				}else if(data.checked == false && file.checked == true){
					
					window.location = "${ctx}/data/data!fileDownload.action";
			 	 	btn1.disabled = true;
				}else if(data.checked == true && file.checked == true){
					
					window.location = "${ctx}/data/data!allFileDownload.action";
			 		 btn1.disabled = true;
				}else if(data.checked == false && file.checked == false){
					alert("请勾选一个备份条件");
				}
		}
	</script>
	</head>

	<body>
		<div id="main" style="text-align: center;">
			<ul>
				<li class="zctop">
					<span class="font14 zc_bt">数据备份</span>
				</li>
			</ul>
			<div
				style="width: 60%; margin: 30px auto; background: #E3F1FA; border: 1px dashed #00699C;">
				<table width="100%" border="0" cellpadding="0" cellspacing="0">
					<tr>
						<td height="40" colspan="5" align="center">
							<font color="red">${info}</font>
						</td>
					</tr>
					<tr>
						<td align="center" style="font-size: 12px;">
							<input type="checkbox" name="data" checked="checked">
							数据库备份
					
							<input type="checkbox" name="file">
							附件备份
						</td>
					</tr>
					<tr>
					<td>&nbsp;</td>
					</tr>
					<tr>
						<td align="center">
							<input type="button" id="btn1" onclick="mySqlDownload();" value="备份">
						</td>
					</tr>
					<tr>
					<td>&nbsp;</td>
					</tr>
					<tr>
					<tr>
					<td>&nbsp;</td>
					</tr>
					<tr>
				</table>
			</div>
		</div>
	</body>
</html>
